class Config {
  String serverUrl;
  int port;
  String path;
  String directory;
  String indexFile;
  String token;
  String storeDirectory;
  String packageDirectory;
  Config(
      {this.serverUrl,
      this.port,
      this.path,
      this.directory,
      this.indexFile,
      this.token,
      this.storeDirectory,
      this.packageDirectory});
  Config.fromJson(Map<String, dynamic> json)
      : serverUrl = json['serverUrl'],
        port = json['port'],
        path = json['path'],
        directory = json['directory'],
        indexFile = json['indexFile'],
        token = json['token'],
        storeDirectory = json['storeDirectory'],
        packageDirectory = json['packageDirectory'];

  Map<String, dynamic> toJson() => {
        'serverUrl': serverUrl,
        'port': port,
        'path': path,
        'directory': directory,
        'indexFile': indexFile,
        'token': token,
        'storeDirectory': storeDirectory,
        'packageDirectory': packageDirectory,
      };
}
